function showTime(){
	var d = new Date();
	var year = d.getFullYear();
	var month = d.getMonth()+1;
	var day = d.getDate();
	var hour = d.getHours();
	var min = d.getMinutes();
	if(min<10) min = "0"+min;
	var s = d.getSeconds();
	if(s<10) s= "0"+s;
	var time = year+"-"+month+"-"+day+" "+hour+":"+min+":"+s;
	document.getElementById("span").innerHTML = time;
	return time;
}

//页面加载事件
window.onload = function(){
	showTime();
	window.setInterval(showTime,1000)
}
function sousuo(){
	//获取输入框的值
	var content = document.getElementById("content").value;
	alert("搜索内容："+content);
}